<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>LibQQt: QextSerialPort Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">LibQQt
   &#160;<span id="projectnumber">v3.1</span>
   </div>
   <div id="projectbrief">开源、跨平台Qt应用程序框架中间件</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="class_qext_serial_port-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">QextSerialPort Class Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="dynheader">
Inheritance diagram for QextSerialPort:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_qext_serial_port.png" usemap="#QextSerialPort_map" alt=""/>
  <map id="QextSerialPort_map" name="QextSerialPort_map">
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:a211f50c9fa3b22235b2dbfa0126c125a"><td class="memItemLeft" align="right" valign="top"><a id="a211f50c9fa3b22235b2dbfa0126c125a"></a>
typedef QextSerialBase::QueryMode&#160;</td><td class="memItemRight" valign="bottom"><b>QueryMode</b></td></tr>
<tr class="separator:a211f50c9fa3b22235b2dbfa0126c125a"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a6aba59fc97222d64653f94c491747ffd"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qext_serial_port.html#a6aba59fc97222d64653f94c491747ffd">QextSerialPort</a> ()</td></tr>
<tr class="separator:a6aba59fc97222d64653f94c491747ffd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ada4e210fc8b01ffee3f91847751a5e0f"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qext_serial_port.html#ada4e210fc8b01ffee3f91847751a5e0f">QextSerialPort</a> (const QString &amp;name, QueryMode mode=QextSerialPort::Polling)</td></tr>
<tr class="separator:ada4e210fc8b01ffee3f91847751a5e0f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a08fc39acb695564a8672d544915ccccf"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qext_serial_port.html#a08fc39acb695564a8672d544915ccccf">QextSerialPort</a> (<a class="el" href="struct_port_settings.html">PortSettings</a> const &amp;s, QueryMode mode=QextSerialPort::Polling)</td></tr>
<tr class="separator:a08fc39acb695564a8672d544915ccccf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa8272c9478e2cc8b3741e538179dc57b"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qext_serial_port.html#aa8272c9478e2cc8b3741e538179dc57b">QextSerialPort</a> (const QString &amp;name, <a class="el" href="struct_port_settings.html">PortSettings</a> const &amp;s, QueryMode mode=QextSerialPort::Polling)</td></tr>
<tr class="separator:aa8272c9478e2cc8b3741e538179dc57b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a207af0672a6a954e6621933e93b9923e"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qext_serial_port.html#a207af0672a6a954e6621933e93b9923e">QextSerialPort</a> (const <a class="el" href="class_qext_serial_port.html">QextSerialPort</a> &amp;s)</td></tr>
<tr class="separator:a207af0672a6a954e6621933e93b9923e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a00aa39b59db50b6fe07bc222b4227f84"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_qext_serial_port.html">QextSerialPort</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qext_serial_port.html#a00aa39b59db50b6fe07bc222b4227f84">operator=</a> (const <a class="el" href="class_qext_serial_port.html">QextSerialPort</a> &amp;)</td></tr>
<tr class="separator:a00aa39b59db50b6fe07bc222b4227f84"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0712978a092762f69f308df7372e3f7a"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qext_serial_port.html#a0712978a092762f69f308df7372e3f7a">~QextSerialPort</a> ()</td></tr>
<tr class="separator:a0712978a092762f69f308df7372e3f7a"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><dl class="section author"><dt>Author</dt><dd>Stefan Sander </dd>
<dd>
Michal Policht</dd></dl>
<p>A cross-platform serial port class. This class encapsulates a serial port on both POSIX and Windows systems. The user will be notified of errors and possible portability conflicts at run-time by default - this behavior can be turned off by defining <em>TTY_NOWARN</em> (to turn off all warnings) or <em>TTY_NOWARN_PORT</em> (to turn off portability warnings) in the project.</p>
<p>You may choose from polling or event driven API. For details check setQueryMode() documentation.</p>
<dl class="section note"><dt>Note</dt><dd>On Windows NT/2000/XP this class uses Win32 serial port functions by default. The user may select POSIX behavior under NT, 2000, or XP ONLY by defining <em>TTY_POSIX</em> in the project. I can make no guarantees as to the quality of POSIX support under NT/2000 however. </dd></dl>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a6aba59fc97222d64653f94c491747ffd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6aba59fc97222d64653f94c491747ffd">&#9670;&nbsp;</a></span>QextSerialPort() <span class="overload">[1/5]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QextSerialPort::QextSerialPort </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Default constructor. Note that the naming convention used by a <a class="el" href="class_qext_serial_port.html">QextSerialPort</a> constructed with this constructor will be determined by #defined constants, or lack thereof - the default behavior is the same as <em>TTY_LINUX</em>. Possible naming conventions and their associated constants are:</p>
<pre class="fragment">Constant         Used By         Naming Convention
----------       -------------   ------------------------
_TTY_WIN_        Windows         COM1, COM2
_TTY_IRIX_       SGI/IRIX        /dev/ttyf1, /dev/ttyf2
_TTY_HPUX_       HP-UX           /dev/tty1p0, /dev/tty2p0
_TTY_SUN_        SunOS/Solaris   /dev/ttya, /dev/ttyb
_TTY_DIGITAL_    Digital UNIX    /dev/tty01, /dev/tty02
_TTY_FREEBSD_    FreeBSD         /dev/ttyd0, /dev/ttyd1
_TTY_LINUX_      Linux           /dev/ttyS0, /dev/ttyS1
&lt;none&gt;           Linux           /dev/ttyS0, /dev/ttyS1
</pre><p>The object will be associated with the first port in the system, e.g. COM1 on Windows systems. See the other constructors if you need to use a port other than the first. </p>

</div>
</div>
<a id="ada4e210fc8b01ffee3f91847751a5e0f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ada4e210fc8b01ffee3f91847751a5e0f">&#9670;&nbsp;</a></span>QextSerialPort() <span class="overload">[2/5]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QextSerialPort::QextSerialPort </td>
          <td>(</td>
          <td class="paramtype">const QString &amp;&#160;</td>
          <td class="paramname"><em>name</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">QueryMode&#160;</td>
          <td class="paramname"><em>mode</em> = <code>QextSerialPort::Polling</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Constructs a serial port attached to the port specified by name. name is the name of the device, which is windowsystem-specific, e.g."COM1" or "/dev/ttyS0".</p>
<dl class="section see"><dt>See also</dt><dd>setQueryMode(). </dd></dl>

</div>
</div>
<a id="a08fc39acb695564a8672d544915ccccf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a08fc39acb695564a8672d544915ccccf">&#9670;&nbsp;</a></span>QextSerialPort() <span class="overload">[3/5]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QextSerialPort::QextSerialPort </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_port_settings.html">PortSettings</a> const &amp;&#160;</td>
          <td class="paramname"><em>settings</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">QueryMode&#160;</td>
          <td class="paramname"><em>mode</em> = <code>QextSerialPort::Polling</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Constructs a port with default name and settings specified by the settings parameter.</p>
<dl class="section see"><dt>See also</dt><dd>setQueryMode(). </dd></dl>

</div>
</div>
<a id="aa8272c9478e2cc8b3741e538179dc57b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa8272c9478e2cc8b3741e538179dc57b">&#9670;&nbsp;</a></span>QextSerialPort() <span class="overload">[4/5]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QextSerialPort::QextSerialPort </td>
          <td>(</td>
          <td class="paramtype">const QString &amp;&#160;</td>
          <td class="paramname"><em>name</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="struct_port_settings.html">PortSettings</a> const &amp;&#160;</td>
          <td class="paramname"><em>settings</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">QueryMode&#160;</td>
          <td class="paramname"><em>mode</em> = <code>QextSerialPort::Polling</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Constructs a port with the name and settings specified.</p>
<dl class="section see"><dt>See also</dt><dd>setQueryMode(). </dd></dl>

</div>
</div>
<a id="a207af0672a6a954e6621933e93b9923e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a207af0672a6a954e6621933e93b9923e">&#9670;&nbsp;</a></span>QextSerialPort() <span class="overload">[5/5]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QextSerialPort::QextSerialPort </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_qext_serial_port.html">QextSerialPort</a> &amp;&#160;</td>
          <td class="paramname"><em>s</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Copy constructor.</p>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000001">Deprecated:</a></b></dt><dd></dd></dl>

</div>
</div>
<a id="a0712978a092762f69f308df7372e3f7a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0712978a092762f69f308df7372e3f7a">&#9670;&nbsp;</a></span>~QextSerialPort()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">QextSerialPort::~QextSerialPort </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Standard destructor. </p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a00aa39b59db50b6fe07bc222b4227f84"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a00aa39b59db50b6fe07bc222b4227f84">&#9670;&nbsp;</a></span>operator=()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_qext_serial_port.html">QextSerialPort</a> &amp; QextSerialPort::operator= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_qext_serial_port.html">QextSerialPort</a> &amp;&#160;</td>
          <td class="paramname"><em>s</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Overrides the = operator.</p>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000002">Deprecated:</a></b></dt><dd></dd></dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>R:/Develop/a0-develop/LibQQt/src/network/qextserialport/<a class="el" href="qextserialport_8h_source.html">qextserialport.h</a></li>
<li>R:/Develop/a0-develop/LibQQt/src/network/qextserialport/qextserialport.cpp</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>
